<template>
  <div class="essay">
    <div class="essay-title">{{this.list.title}}</div>
    <div class="essay-time">{{this.list.time}}   {{this.list.author}}</div>
    <div class="essay-detail">{{this.list.article}}</div>
    <div class="essay-prise">
      <div><span class="iconfont">&#xe618;</span>25</div>
      <div class="dianzan"><span class="iconfont">&#xe653;</span>15</div>
    </div>
  </div>
</template>

<script>
  export default {
    name: "Literaturedetail",
    data() {
      return {
        list: {}
      }
    },
    methods:{
      getdata:function () {
       this.list =JSON.parse(this.$route.query.userId)
      }
    },
    mounted(){
      this.getdata()
    }
  }
</script>

<style scoped>
  .essay{
  padding: .4rem;
  }
  .essay-title{
    font-size: 18px;
    font-weight: bold;
  }
  .essay-time{
    font-size: 16px;
    line-height: 1rem;
  }
  .essay-detail{
    font-size: 16px;
    line-height: .5rem;
  }
  .essay-prise{
    display: flex;
    margin-top: 4rem;
  }
  .dianzan{
    margin-left: 2rem;
  }
</style>
